/*
 * Filename TestOrderCheckRecordFegin.java 2022年10月26日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.terminal.api.fegin;

import com.ehome.poct.core.api.vo.order.TestOrderCheckRecordVO;
import com.ehome.poct.terminal.api.qry.CheckRecordQry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author wyc
 * @since 2022/10/26 17:47
 **/
@FeignClient(value = "${service.poct-core:}${service.suffix.poct-core:}", path = "/orderCheckRecord", contextId = "checkRecord")
public interface TestOrderCheckRecordClient {

    @PostMapping("/remark/{orderNo}/{type}")
    void updateRemark(@PathVariable String orderNo, @PathVariable Integer type);

    @GetMapping({"/one"})
    TestOrderCheckRecordVO queryOne(@SpringQueryMap CheckRecordQry qry);

    @GetMapping
    List<TestOrderCheckRecordVO> query(@SpringQueryMap CheckRecordQry qry);

}